#pragma once
#include "istatu.h"
#include "MediaPlayer.h"
void CALLBACK UpdateUITimerProc(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime );
class  CMusicPlayStatu :
	public IStatu
{
public:

	CMusicPlayStatu(WCHAR* name);
	
	~CMusicPlayStatu(void);

	virtual bool EvaluateClickEvent(const WCHAR* elementName);
	virtual bool EvaluateSliderMoveEvent(const WCHAR* elementName);


	virtual bool EnterStatu();
	virtual bool ExitStatu();
	void UpdatePlayInfo();
	void StartPlay( );
	bool PlayNext(bool bAuto=TRUE);
public:
	bool PlayClick();
	bool PlayPre(bool bAuto=TRUE);
	void Stop();
    bool PlayPause();
	bool SeekSliderClick(void);
	bool VolSliderClick(void);
	bool BackClick(void);
	bool OpenFileList();
    bool SetMode(int nMode);
private:
	MediaInfo m_MediaInfo;
   wstring m_strDir;
   int m_PlayMode;
};
